﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using Majoopic.DataAccess;

namespace Majoopic.UnitTest
{
    /// <summary>
    /// Test the factory loading
    /// </summary>
    [TestClass]
    public class LoadFactoryTest
    {
        /// <summary>
        /// Test the creation of the SQLAccessFactory
        /// </summary>
        [TestMethod]
        public void TestSQLDBAccessFactory()
        {
            DataAccessAbstractFactory factory = DataAccessAbstractFactory.CreateFactory(LibraryFactoryType.SQLAccessFactory);
            Assert.IsNotNull(factory);
        }
    }
}
